function delMsg(ele, msgId) {
    console.log(msgId);
    let url = ROOTSources + "/message/del/" + msgId;
    let ajax = new XMLHttpRequest() || new ActiveXObject('Microsoft.XMLHTTP');
    ajax.open("GET", url, true);
    ajax.send();
    ajax.onreadystatechange = function () {
        if (ajax.readyState === 4) {
            if (ajax.status >= 200 && ajax.status < 300 || ajax.status === 304) {
                try {
                    if (JSON.parse(ajax.responseText).status === 1) {
                        let cell = ele.parentElement.parentElement.parentElement.parentElement;
                        cell.parentElement.removeChild(cell);
                        if (document.querySelectorAll(".cell").length <= 1) {
                            window.location.reload(true);
                        }
                    }
                } catch (e) {
                }
            }
        }
    }
}